package com.ketai.dao;

import com.ketai.pojo.CActivity;
import com.ketai.vo.ActivityVo;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author:长沙科泰梦想学院-蓝色小药丸
 * @Mission:打造演说·创客型跨境电商与互联网人才
 * @Description:  研学活动Dao
 * @Date:Create In 2022/8/4 21:54
 **/
public interface ActivityDao {

    List<ActivityVo> getAllActivities(String sql, Object[] params) throws SQLException, NamingException;

    int addActivity(CActivity activity) throws SQLException, NamingException;

    int deleteActivityById(String id) throws SQLException, NamingException;

    int  editActivity(CActivity activity);

    long getTotalActivityCount(String sql,Object[] params) throws SQLException, NamingException;

    ActivityVo getActivityById(String id) throws SQLException, NamingException;

    int  checkedActity(String sql,Object[] params) throws SQLException, NamingException;



}
